#ifndef HASHTABLE
#define HASHTABLE
#include "linkedlist.h"
#include "constants.h"



typedef struct hash
{
    l_node* Table[MAXNODE];
} hashtable;


//---------------functions in hashtable--------

int initialize_hashtable(hashtable *);

int hashfunctn( char );

int insert_hashtable(hashtable*, fdesc *);

l_node* search_hashtable(hashtable*, char[]);

l_node* search_pre_hashtable(hashtable *ht, char* filename);

int delete_hashtable(hashtable* ,fdesc *);

void print_hashtable(hashtable*);


#endif // HASHTABLE
